package com.example.gzysmartcity.repository;

import android.util.Log;
import android.webkit.JavascriptInterface;

import com.google.gson.Gson;

import java.util.List;

public class Js <T>{
    private final Gson gson=new Gson();
    List<T> list;

    public Js(List<T> list) {
        this.list = list;
    }
    @JavascriptInterface
    public String toList(){
        String s = gson.toJson(list);
        Log.i("TAG", "toList: "+s);
        return s;
    }
}
